<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{title}}</text>
			{{ message }}
		</view>
		<!-- #ifdef H5 || APP-PLUS || MP-WEIXIN -->
		<view hover-class="active">按钮点击</view>
		<!-- #endif -->
		
		<view>uniapp</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
				message: 'hello world'
			}
		},
		onLoad() {
			// #ifdef H5 || APP-PLUS || MP-WEIXIN
			// #endif
			uni.getSystemInfo({
				success(res) {
					console.log(res)
				},
				fail(res) {
					console.log(res)
				},
				complete(res){
					console.log('comp:',res)
				}
			})
		},
		// tabbar点击触发
		onTabItemTap(option) {
			console.log(option)
		},
		methods: {

		}
	}
</script>

<style>
	/* #ifdef APP-PLUS || MP-WEIXIN */
	
	
	.active{
		border: 1px solid red;
	}
	/* #endif */
	
	/*设置body的样式*/
	page{
		background-color: aqua;
	}
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
